<?php session_start(); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Report Card System</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<link type="text/css" rel="stylesheet" href="./public/css/form.css" />
<link type="text/css" rel="stylesheet" href="./public/css/menu.css" />
<link type="text/css" rel="stylesheet" href="./public/css/style.css" />

<script src="./public/js/jquery.js" type="text/javascript"></script>
<script src="./public/js/jquery.validate.js" type="text/javascript"></script>

</head>
<body>
<div id="wrapper-outer"><?php if($_SESSION['page'] && $_SESSION['page'] != "visitor.php"){ ?>
<div id="header"><?php include './pages/template/header.php'?></div>
<div id="side-bar"><?php include './pages/template/menu.php'?></div>
<div id="main-content"><?php include './pages/'.$_SESSION['page'];	?></div>
<?php
}else{
	include './pages/visitor.php';
}?></div>
<?php
// Clear all previous messages when refresh.
if($_SESSION['log-err']) session_unregister('log-err');
if($_SESSION['log-info']) session_unregister('log-info');
?>
</body>
</html>
